
package VLSys;

import javax.swing.*;
import java.awt.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Toolkit;
import javax.swing.*;


public class MainPanel extends JPanel{
    
    ImageStore welcome_screen;
    
    public MainPanel()
    {
        
    
        setVisible(false);
        setLayout(null);
        setBackground(Color.white);
        
        welcome_screen = new ImageStore("images/welcome_screen_temp.jpg");
        
        
    }
    
    public void paint(Graphics g){
    super.paint(g);
    Graphics2D backg2 = (Graphics2D)g;

    backg2.drawImage(welcome_screen.getImage(), 0, 0, this);

   Toolkit.getDefaultToolkit().sync();
   g.dispose();

}
    
}
